Optimal. Leaf size=141 \[ \frac{2 a (A b-a B)}{b d \left (a^2+b^2\right ) \sqrt{a+b \tan (c+d x)}}-\frac{(A-i B) \tanh ^{-1}\left (\frac{\sqrt{a+b \tan (c+d x)}}{\sqrt{a-i b}}\right )}{d (a-i b)^{3/2}}-\frac{(A+i B) \tanh ^{-1}\left (\frac{\sqrt{a+b \tan (c+d x)}}{\sqrt{a+i b}}\right )}{d (a+i b)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.280975, antiderivative size = 141, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 5, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.161, Rules used = {3591, 3539, 3537, 63, 208} \[ \frac{2 a (A b-a B)}{b d \left (a^2+b^2\right ) \sqrt{a+b \tan (c+d x)}}-\frac{(A-i B) \tanh ^{-1}\left (\frac{\sqrt{a+b \tan (c+d x)}}{\sqrt{a-i b}}\right )}{d (a-i b)^{3/2}}-\frac{(A+i B) \tanh ^{-1}\left (\frac{\sqrt{a+b \tan (c+d x)}}{\sqrt{a+i b}}\right )}{d (a+i b)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3591
Rule 3539
Rule 3537
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{\tan (c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx &=\frac{2 a (A b-a B)}{b \left (a^2+b^2\right ) d \sqrt{a+b \tan (c+d x)}}+\frac{\int \frac{A b-a B+(a A+b B) \tan (c+d x)}{\sqrt{a+b \tan (c+d x)}} \, dx}{a^2+b^2}\\ &=\frac{2 a (A b-a B)}{b \left (a^2+b^2\right ) d \sqrt{a+b \tan (c+d x)}}+\frac{(A-i B) \int \frac{1+i \tan (c+d x)}{\sqrt{a+b \tan (c+d x)}} \, dx}{2 (i a+b)}+\frac{((i a+b) (A+i B)) \int \frac{1-i \tan (c+d x)}{\sqrt{a+b \tan (c+d x)}} \, dx}{2 \left (a^2+b^2\right )}\\ &=\frac{2 a (A b-a B)}{b \left (a^2+b^2\right ) d \sqrt{a+b \tan (c+d x)}}+\frac{(A-i B) \operatorname{Subst}\left (\int \frac{1}{(-1+x) \sqrt{a-i b x}} \, dx,x,i \tan (c+d x)\right )}{2 (a-i b) d}+\frac{(A+i B) \operatorname{Subst}\left (\int \frac{1}{(-1+x) \sqrt{a+i b x}} \, dx,x,-i \tan (c+d x)\right )}{2 (a+i b) d}\\ &=\frac{2 a (A b-a B)}{b \left (a^2+b^2\right ) d \sqrt{a+b \tan (c+d x)}}-\frac{(i (A+i B)) \operatorname{Subst}\left (\int \frac{1}{-1+\frac{i a}{b}-\frac{i x^2}{b}} \, dx,x,\sqrt{a+b \tan (c+d x)}\right )}{(a+i b) b d}+\frac{(i A+B) \operatorname{Subst}\left (\int \frac{1}{-1-\frac{i a}{b}+\frac{i x^2}{b}} \, dx,x,\sqrt{a+b \tan (c+d x)}\right )}{(a-i b) b d}\\ &=-\frac{(A-i B) \tanh ^{-1}\left (\frac{\sqrt{a+b \tan (c+d x)}}{\sqrt{a-i b}}\right )}{(a-i b)^{3/2} d}-\frac{(A+i B) \tanh ^{-1}\left (\frac{\sqrt{a+b \tan (c+d x)}}{\sqrt{a+i b}}\right )}{(a+i b)^{3/2} d}+\frac{2 a (A b-a B)}{b \left (a^2+b^2\right ) d \sqrt{a+b \tan (c+d x)}}\\ \end{align*}
Mathematica [A] time = 1.38869, size = 229, normalized size = 1.62 \[ \frac{\frac{b \left (A \left (b^2-a \sqrt{-b^2}\right )-b B \left (a+\sqrt{-b^2}\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{a+b \tan (c+d x)}}{\sqrt{a-\sqrt{-b^2}}}\right )}{\sqrt{-b^2} \sqrt{a-\sqrt{-b^2}}}-\frac{b \left (A \left (a \sqrt{-b^2}+b^2\right )+b B \left (\sqrt{-b^2}-a\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{a+b \tan (c+d x)}}{\sqrt{a+\sqrt{-b^2}}}\right )}{\sqrt{-b^2} \sqrt{a+\sqrt{-b^2}}}+\frac{2 a (A b-a B)}{\sqrt{a+b \tan (c+d x)}}}{b d \left (a^2+b^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.091, size = 7956, normalized size = 56.4 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (A + B \tan{\left (c + d x \right )}\right ) \tan{\left (c + d x \right )}}{\left (a + b \tan{\left (c + d x \right )}\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \tan \left (d x + c\right ) + A\right )} \tan \left (d x + c\right )}{{\left (b \tan \left (d x + c\right ) + a\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]